package com.oss.model;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 * @author xueqiang.mi
 * @date 2010-2-4
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Version {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private String name;

	@Persistent
	private Date releaseDate;

	@Persistent
	private String description;

	public Version(String name, Date releaseDate) {
		super();
		this.name = name;
		this.releaseDate = releaseDate;
	}

	public String getDescription() {
		return description;
	}

	public Key getKey() {
		return key;
	}

	public String getName() {
		return name;
	}

	public Date getReleaseDate() {
		return releaseDate;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setReleaseDate(Date releaseDate) {
		this.releaseDate = releaseDate;
	}
}
